package com.huanming.dsjc.modular.goods.warpper;

import com.huanming.dsjc.common.warpper.BaseControllerWarpper;
import com.huanming.dsjc.core.util.SpringContextHolder;
import com.huanming.dsjc.modular.university.dao.ClassMapper;
import com.huanming.dsjc.modular.university.entity.Classes;

import java.util.List;
import java.util.Map;

public class GroupWarpper extends BaseControllerWarpper {


    public GroupWarpper(List list) {
        super(list);
    }

    @Override
    protected void warpTheMap(Map<String, Object> map) {
        ClassMapper classMapper = SpringContextHolder.getBean(ClassMapper.class);
        Classes classes= classMapper.selectById(Integer.parseInt((String) map.get("classId")));
        map.put("className",classes.getClassName());
    }
}
